﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Silverlight_Client.Commands_Utils;

namespace Silverlight_Client.ViewModels
{
    public class SelectedCategoryVM : IViewModelBase
    {
        #region Fields

        private String      _resume, _selectedcategoryitemlink, _title;
        private ICommand    _titlecmd;
        
        #endregion

        #region Properties

        public String       Resume
        {
            get { return _resume; }
            set
            {
                if (_resume == value) return;
                _resume = value;
                RaisePropertyChanged("Resume");
            }
        }
        public String       Title
        {
            get { return _title; }
            set
            {
                if (_title == value) return;
                _title = value;
                RaisePropertyChanged("Title");
            }
        }

        #endregion

        #region Commands

        public ICommand TitleCmd
        {
            get { return _titlecmd; }
        }

        #endregion

        #region Commands Functions

        public void TitleFunc()
        {

        }

        #endregion

        #region Functions
        
        #endregion

        #region Ctor

        public SelectedCategoryVM(String title, String resume, String selectedcategoryitemlink)
        {
            _resume = resume;
            _selectedcategoryitemlink = selectedcategoryitemlink;
            _title = title;
            _titlecmd = new RelayCommand(TitleFunc) { IsEnabled = true };
        }

        #endregion
    }
}
